#include "main.h"

int main(int argc, const char *argv[])
{
    int input = 0;
    do
    {
        printf( "----------查询单月(1)\t查询整年(2)\t退出(0)----------\n");
        scanf ( "%d" , &input);
        switch (input)
        {
            case 1:
                singleMonth();
                break;
            case 2 :
                wholeYear( );
                break;
            case 0:
                printf("退出! \n" );
                break;
            default:
                printf("输入有误，请重新输入!ln" );
                break;
        }
    }while(input);

    return 0;
}